home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 6⁄8⁄90 / 1397-Re CPlusLoad⁄NeedsFP-Jun90 < prev    next >
Encoding:
Text File  |  1990-06-08  |  2.0 KB  |  52 lines  |  [TEXT/GEOL]

  1. Item    4507960                         4-June-90        13:23PDT
  2.  
  3. From:   GARDNER.P                       Gardner, Preston
  4.  
  5. To:     V0683                           Amoco Tech, Eric Berdahl,VAR
  6.         MACAPP.TECH$                    MacApp Technical
  7.  
  8. Sub:    re> CPlusLoad/NeedsFPU in MAB
  9.  
  10. re CPlusLoad/NeedsFPU in MABuild
  11.  
  12. This is a result of CPlus and MacApp confusing each other needlessly.
  13.  
  14. The original intention with load and dump was to insure that the floating point
  15. options -elems881 and -mc68881 are compatible between the load and the dump.
  16. In the version you have this is done by reading these options from the load
  17. file and ignoring what's on the command line when you do the load.  Or rather,
  18. the options are not ignored, the compiler gives an error if you use them on the
  19. load.
  20.  
  21. This is too confusing, so we have changed the rules in 3.1 final to require
  22. instead that if you have either of these options on the command line when you
  23. do the dump, you have to also have them on the load line.
  24.  
  25. Example:
  26.  
  27. Old way:
  28.     CPlus -dump headers.dump -mc68881 headers.cp
  29.     CPlus -load headers.dump          myprog.cp  # leave -mc68881 out
  30.  
  31. New way:
  32.     CPlus -dump headers.dump -mc68881 headers.cp
  33.     CPlus -load headers.dump -mc68881 myprog.cp  # options must match
  34.  
  35. Not all the options have to match in the dump and load -- only the FP ones and
  36. -sym care about this.  The compiler will issue a warning if they don't match.
  37.  
  38.  
  39. My theory is that the MacApp people saw the way this worked and assumed that
  40. CPlus won't let you use floating point if you do a load.
  41.  
  42.  
  43. For MABuild, I'm not sure what you do to get around this.  Try making the dump
  44. file with -NeedsFPU and then just don't bother to use -NeedsFPU when you do the
  45. load.  It will be in there, don't worry.  (Except that the Link line will have
  46. to be fixed to find the 881 libraries, I think...)  It takes a MacApp person to
  47. answer this part.
  48.  
  49. In the future this won't happen.  It is fixed in 3.1 final (to be released in a
  50. few weeks) but I don't know what version of MacApp will have this fixed.
  51.  
  52.